package com.linetime.wechat.constants;

/**
 * 菜单相关的API链接
 *
 * @author: saz
 * @date 2018/10/22 18:31
 */
public class MenuAPI extends WechatAPI {

    /**
     * 菜单创建API <br/>
     * 请求方式：POST <br/>
     * <a href='https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141013'>[说明文档]</a>
     */
    public static final String MENU_CREATE_API = " https://api.weixin.qq.com/cgi-bin/menu/create?access_token=" + ACCESS_TOKEN;

    /**
     * 创建个性化菜单 <br/>
     * 请求方式：POST <br/>
     * <a href='https://mp.weixin.qq.com/wiki?action=doc&id=mp1455782296&t=0.31206013458544857&token=&lang=zh_CN#0'>[说明文档]</a>
     */
    public static final String CONDITIONAL_MENU_CREATE_API = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token=" + ACCESS_TOKEN;

    /**
     * 菜单查询API <br/>
     * 请求方式：GET <br/>
     * <a href='https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141014'>[说明文档]</a>
     */
    public static final String MENU_GET_API = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=" + ACCESS_TOKEN;

    /**
     * 菜单删除API <br/>
     * 请求方式：GET <br/>
     * <a href='https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141015'>[说明文档]</a>
     */
    public static final String MENU_DELETE_API = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=" + ACCESS_TOKEN;

    /**
     * 个性化菜单删除 <br/>
     * 请求方式：POST <br/>
     * <a href='https://mp.weixin.qq.com/wiki?action=doc&id=mp1455782296&t=0.7162280904099534&token=&lang=zh_CN#1'>[说明文档]</a>
     */
    public static final String CONDITIONAL_MENU_DELETE_API = "https://api.weixin.qq.com/cgi-bin/menu/delconditional?access_token=" + ACCESS_TOKEN;


    /**
     * 测试个性化菜单匹配结果 <br/>
     * 请求方式 POST <br/>
     * <a href='https://mp.weixin.qq.com/wiki?action=doc&id=mp1455782296&t=0.9716072144500989&token=&lang=zh_CN#2'>[说明文档]</a>
     */
    public static final String CONDITIONAL_MENU_MATCH_API = "https://api.weixin.qq.com/cgi-bin/menu/trymatch?access_token=" + ACCESS_TOKEN;

}
